Bug 1622658 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

+++ This bug was initially created as a clone of Bug #1622657 +++

+++ This bug was initially created as a clone of Bug #1622653 +++

Filling as a good first bug to learn workflows.

```if (aHistogram.size() == 0) {```
should use .empty() instead

https://searchfox.org/mozilla-central/source/gfx/layers/composite/FPSCounter.cpp#279

As the change is trivial, it is just to learn how to contribute to Firefox.

Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-container-size-empty.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Filling as a good first bug to learn workflows.

```if (aHistogram.size() == 0) {```
should use .empty() instead

https://searchfox.org/mozilla-central/source/gfx/layers/composite/FPSCounter.cpp#279

As the change is trivial, it is just to learn how to contribute to Firefox.

Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-container-size-empty.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/tools/docs/contribute/how_to_contribute_firefox.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Back to Bug 1622658 Comment 0